package com.tbit.uqbike.push.service.impl;


import com.tbit.uqbike.push.dao.core.MachineBorrowDao;
import com.tbit.uqbike.push.pojo.MachineBorrow;
import com.tbit.uqbike.push.service.MachineBorrowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("machineBorrowService")
public class MachineBorrowServiceImpl implements MachineBorrowService {
    @Autowired
    private MachineBorrowDao machineBorrowDao;

    @Override
    public MachineBorrow getByMachineId(Integer machineId) {
        return machineBorrowDao.getByMachineId(machineId);
    }

    @Override
    public List<MachineBorrow> getAll() {
        return machineBorrowDao.getAll();
    }
}